import request from '@/utils/request'

// 查询校级项目列表
export function listProjectManage(query) {
  return request({
    url: '/pm/projectManage/list',
    method: 'get',
    params: query
  })
}

// 查询校级项目详细
export function getProjectManage(id) {
  return request({
    url: '/pm/projectManage/' + id,
    method: 'get'
  })
}

// 新增校级项目
export function addProjectManage(data) {
  return request({
    url: '/pm/projectManage',
    method: 'post',
    data: data
  })
}

// 修改校级项目
export function updateProjectManage(data) {
  return request({
    url: '/pm/projectManage',
    method: 'put',
    data: data
  })
}

// 删除校级项目
export function delProjectManage(id) {
  return request({
    url: '/pm/projectManage/' + id,
    method: 'delete'
  })
}
